import axios from 'axios';

export const getChatList = async (userId) => {
    try {
        const response = await axios.post('/chat/list', {
            userId
        });

        return response.data;
    } catch (error) {
        return {
            status: 1001,
            msg: '获取会话列表失败，请稍后再试'
        };
    }
};
